package com.winning.shiro.shiroboot.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
import org.springframework.web.servlet.view.JstlView;

/**
 * @author Lenovo
 * @title
 * @project shiro-web
 * @package com.winning.shiro
 * @date: 2019-01-21 11:17
 */
@Configuration
@ComponentScan(basePackages = {"com.winning.shiro"})
@EnableWebMvc
public class WebConfig {

//    @Bean
//    public InternalResourceViewResolver viewResolver() {
//        InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
//        viewResolver.setViewClass(JstlView.class);
//        viewResolver.setPrefix("/template/");
//        viewResolver.setSuffix(".jsp");
//
//        return viewResolver;
//    }
}
